package com.jackstraw.jack_base.util.tenant.annotation;


import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Service;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 租户切面
 */
@Service
@Inherited
@Documented
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface TenantCut {
    /**
     * 租户名称
     *
     * @return
     */
    String tenantName();

    @AliasFor(annotation = Service.class)
    String value() default "";
}
